

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
 * 添加员工编号时出现重复编号，进行判定
 */
public  class Id {
    public static <T> boolean isId(List<T> em, String id) {
        for (T t : em) {
            Map<String,Object> employee = (Map<String, Object>) t;
            if (employee.get("id").toString().equals(id)) {
                return true;
            }
        }
        return false;
        }
    }

